package com.rules.admin.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rules.admin.dao.SysResourceDao;
import com.rules.admin.entity.SysResource;
import com.rules.admin.service.SysResourceService;
import org.springframework.stereotype.Service;

@Service
public class SysResourceServiceImpl extends ServiceImpl<SysResourceDao, SysResource> implements SysResourceService {


   public SysResource insert(String groupCode) {
      String url = "/system/" + groupCode;
      SysResource sysResource = new SysResource();
      sysResource.setUrl(url);
      this.save(sysResource);
      return sysResource;
   }

}
